package com.easy.dao;

import com.easy.bean.Patient;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IPatientDao {
    List<Patient> getPatient(@Param("patient") Patient patient,@Param("page") Page page);

    int addPatient(Patient patient);

    int editPatient(Patient patient);

    Patient getPatientById(int id);
    int delPatient(int id);
    int getCount(@Param("patient") Patient patient);
}
